package org.gwu.seuss.persistence;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.gwu.seuss.domain.Shared;

public interface SharedMapper {

	@Select("SELECT * FROM shared")
	public List<Shared> selectAllSharedFiles();
	
	@Select("SELECT * FROM shared WHERE sharedUserId = #{userId}")
	public List<Shared> selectAllSharedFilesByUserId(@Param("userId") int userId);
	
}
